package com.example.hubu20250620.controller;

import com.example.hubu20250620.entity.PageData;
import com.example.hubu20250620.service.CinemaService;
import com.example.hubu20250620.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CinemaController {
    @Autowired
    private CinemaService cinemaService;

    @GetMapping("/getCinemaList")
    public Result getCinemaList(PageData pageData){
        return Result.success(cinemaService.getCinemaList(pageData));
    }
}
